package org.gjw.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

/**
 * @author guojunwang
 * @date 2022-05-10 22:16
 */
@TableName("datasource_info")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataSourceInfo {

    @TableId( type = IdType.AUTO )
    private Integer id;

    @TableField("datasource_key")
    private String dataSourceKey;

    private String url;

    private String driverClassName;

    private String username;

    private String password;

    @TableField("datasource_type")
    private String dataSourceType;
}
